package com.zpark.client;

import com.zpark.pojo.User;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @Description
 * @Author zhangbing
 * @Date 2024/4/22 14:46  服务降级类
 **/

@Component
public class UserFeignClientFallback implements UserFeignClient{

    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("用户异常！！");
        return user;
    }
}
